module.exports = {

    /**
     * You will need to set publicPath if you plan to deploy your site under a sub path,
     * for example GitHub Pages. If you plan to deploy your site to https://foo.github.io/bar/,
     * then publicPath should be set to "/bar/".
     * In most cases please use '/' !!!
     * Detail: https://cli.vuejs.org/config/#publicpath
     */
    outputDir: "dist",
    assetsDir: "static",
    filenameHashing: true,
    // tweak internal webpack configuration.
    // see https://github.com/vuejs/vue-cli/blob/dev/docs/webpack.md
    devServer: {
        // host: '0.0.0.0',
        hot: true,
        disableHostCheck: true,
        overlay: {
            warnings: false,
            errors: true
        },

        proxy: {

            '/gct': {

                target: 'http://10.0.204.89:8082',

                changeOrigin: true,
                pathRewrite: {
                    '^/gct': ''
                }
            },
            '/feapi': {
                target: 'http://10.0.204.82:8080', //设置你调用的接口域名和端口号 别忘了加http  http://cce-test.gcxx.test:8002 //http://interface.gzc.com
                changeOrigin: true,
                pathRewrite: {
                    '^/feapi': '/api' //这里理解成用‘/api’代替target里面的地址，后面组件中我们掉接口时直接用api代替 比如我要调用'http://40.00.100.100:3002/user/add'，直接写‘/api/user/add’即可
                }
            }
        }
    },

};